package wanba.wanbatv.com.wudao.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by 俞亚楠 on 2015/6/24.
 */
public class DBOpenHelper extends SQLiteOpenHelper {

    private static String DB_NAME="text.db";
    private static int  DB_VERSION=1;

    public DBOpenHelper(Context context) {
        super(context,DB_NAME, null,DB_VERSION);
    }


    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table tbl_person (_id Integer primary key autoincrement,name varchar(20))");
    }


    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
